//
//  ImagePickerTool.h
//  DongDongCircle
//
//  Created by 谢曦 on 2016/12/22.
//  Copyright © 2016年 gl. All rights reserved.
//

#import <Foundation/Foundation.h>


@protocol ImagePickerToolDelegate <NSObject>

- (void)imagePickerController:(UIImagePickerController *)picker didPicker:(UIImage *)image userInfo:(NSDictionary *)info;
- (void)imagePickerControllerDidCancel;
@end

@interface ImagePickerTool : NSObject
@property (nonatomic,weak) id<ImagePickerToolDelegate> delegate;

+ (ImagePickerTool *)sharedManager;

//判断是否有访问权限
-(BOOL)sourceTypeAvailable:(UIImagePickerControllerSourceType)sorceType  ;

+(UIImagePickerController *)imagePickerController;
+(UIImagePickerController *)cameraController;

@end
